/// merchantStatsList : [{"merchantId":29953,"merchantName":"新华路soho酒店","netreceipt":129041.36,"transTotal":443},{"merchantId":27948,"merchantName":"老板电器","netreceipt":101714.53,"transTotal":51},{"merchantId":25579,"merchantName":"瑞莱克斯大酒店","netreceipt":96133.27,"transTotal":41},{"merchantId":39021,"merchantName":"品胜数码柯基","netreceipt":77066.0,"transTotal":19},{"merchantId":25719,"merchantName":"自助购物系统","netreceipt":66651.88,"transTotal":367},{"merchantId":39023,"merchantName":"SOSClub","netreceipt":60729.9,"transTotal":19},{"merchantId":39025,"merchantName":"皇后酒吧","netreceipt":53463.04,"transTotal":14},{"merchantId":25293,"merchantName":"麻辣香锅祥园分店","netreceipt":48613.59,"transTotal":40},{"merchantId":29954,"merchantName":"青年旅店002","netreceipt":25529.58,"transTotal":26},{"merchantId":35353,"merchantName":"自助购物系统","netreceipt":3932.52,"transTotal":4}]
/// netreceipt : 664925.56
/// transTotal : 2181
/// transState : 0
/// count : 16

class Merchantcount {
  List<MerchantCountList> _merchantStatsList;
  double _netreceipt;
  int _transTotal;
  int _transState;
  int _count;

  List<MerchantCountList> get merchantStatsList => _merchantStatsList;
  double get netreceipt => _netreceipt;
  int get transTotal => _transTotal;
  int get transState => _transState;
  int get count => _count;

  Merchantcount(
      {List<MerchantCountList> merchantStatsList,
      double netreceipt,
      int transTotal,
      int transState,
      int count}) {
    _merchantStatsList = merchantStatsList;
    _netreceipt = netreceipt;
    _transTotal = transTotal;
    _transState = transState;
    _count = count;
  }

  Merchantcount.fromJson(dynamic json) {
    if (json["merchantStatsList"] != null) {
      _merchantStatsList = [];
      json["merchantStatsList"].forEach((v) {
        _merchantStatsList.add(MerchantCountList.fromJson(v));
      });
    }
    _netreceipt = json["netreceipt"];
    _transTotal = json["transTotal"];
    _transState = json["transState"];
    _count = json["count"];
  }
}

class MerchantCountList {
  int _merchantId;
  String _merchantName;
  double _netreceipt;
  int _transTotal;

  int get merchantId => _merchantId;
  String get merchantName => _merchantName;
  double get netreceipt => _netreceipt;
  int get transTotal => _transTotal;

  MerchantCountList(
      {int merchantId,
      String merchantName,
      double netreceipt,
      int transTotal}) {
    _merchantId = merchantId;
    _merchantName = merchantName;
    _netreceipt = netreceipt;
    _transTotal = transTotal;
  }

  MerchantCountList.fromJson(dynamic json) {
    _merchantId = json["merchantId"];
    _merchantName = json["merchantName"];
    _netreceipt = json["netreceipt"];
    _transTotal = json["transTotal"];
  }
}
